Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify build system #24

Merged
merged 51 commits into from
Feb 25, 2017
Merged

Simplify build system #24

merged 51 commits into from
Feb 25, 2017

Conversation

tomdeakin
Copy link
Contributor

This branch aims to simplify the build system in general for GPU-STREAM. CMake is unable to build multiple binaries using multiple compilers with a single evocation. As such, it is simpler to just provide simple Makefiles which build the binaries for the various models in common configurations. They are simple to extend and customise for specific platforms if required.

This should fix a number of the Issues, in particular #8, #9, #14 and #18.

SYCL.make Outdated


SYCLStream.sycl: SYCLStream.cpp
compute++ SYCLStream.cpp -sycl -no-serial-memop -O2 -emit-llvm -c
Copy link
Contributor

@Ruyk Ruyk Feb 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If computecpp_info is on the path (as compute++ seems to be) you can just query it for the device compiler flags:

$ computecpp_info  --dump-device-compiler-flags
-O2 -mllvm -inline-threshold=1000 -sycl -intelspirmetadata -emit-llvm

which you can use then for the makefile

(device compiler flags may change across versions)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, we'll use this instead.

This doesn't include -no-serial-memop though (which leads to warnings from the compiler). Should we just ignore that?

@tomdeakin tomdeakin merged commit 4d24e23 into master Feb 25, 2017
@jrprice jrprice deleted the bugfix/build branch March 17, 2017 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants